package com.medical.data.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class AddTemplateTypeVo {

    @NotBlank(message = "表单名字不可为空")
    @ApiModelProperty(value = "是什么类型的表单名字")
    private String formTemplateName;

    @NotBlank(message = "类型不可为空")
    @Length(max = 2,min = 1,message = "类型最大长度不可超过2")
    @ApiModelProperty(value = "是什么类型的表单：1普通表单，2随访表单")
    private String formTemplateType;

}
